import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {FormsModule} from '@angular/forms';//ngModel 需要这个

import {AppRoutingModule} from './app-routing.module';
import {AppComponent} from './app.component';
import {Demo01Component} from './study/demo01/demo01.component';
import {Demo02BasicComponent} from './study/demo02-basic/demo02-basic.component';
import {Demo03LianxiComponent} from './study/demo03-lianxi/demo03-lianxi.component';
import { Demo04DirectiveComponent } from './study/demo04-directive/demo04-directive.component';
import { Demo05LianxiComponent } from './study/demo05-lianxi/demo05-lianxi.component';
import { ChangeBgDirective } from './study/change-bg.directive';

@NgModule({
  declarations: [
    AppComponent,
    Demo01Component,
    Demo02BasicComponent,
    Demo03LianxiComponent,
    Demo04DirectiveComponent,
    Demo05LianxiComponent,
    ChangeBgDirective
  ],
  imports: [
    FormsModule,
    BrowserModule,
    AppRoutingModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule {
}
